package com.tpu.bdclasses;

import java.util.HashSet;
import java.util.Set;

/**
 * @hibernate.class table="client"  
 */
public class TheaterUser {
	private String name;
	private String Surname;
	private String email;
	private int tel;
	private String passwors;
	private String login;
	private int user_id;
	private TheatreOrder theorder;
	private Set orders=new HashSet();
	public TheaterUser(String name, String surname, String email, int tel,
			String passwors, String login, int id){
		super();
		this.name = name;
		Surname = surname;
		this.email = email;
		this.tel = tel;
		this.passwors = passwors;
		this.login = login;
		this.user_id = id;
		this.theorder = theorder;
		this.orders = orders;
	}

	public TheaterUser(){}

	 /**
     * @hibernate.property column="name"
     */
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	 /**
     * @hibernate.property column="surname"
     */
	public String getSurname() {
		return Surname;
	}
	public void setSurname(String surname) {
		Surname = surname;
	}
	 /**
     * @hibernate.property column="email"
     */
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	 /**
	  * @hibernate.id generator-class="native" column="id"
	  */
	public int getUser_id() {
		return user_id;
	}
	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}
	/**
     * @hibernate.property column="tel"
     */
	public int getTel() {
		return tel;
	}
	public void setTel(int tel) {
		this.tel = tel;
	}
	/**
     * @hibernate.property column="password"
     */
	public String getPasswors() {
		return passwors;
	}
	public void setPasswors(String passwors) {
		this.passwors = passwors;
	}
	/**
     * @hibernate.property column="login"
     */
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	/**
	* @hibernate.set
	* inverse="true"
	* order-by="id"
	* @hibernate.collection-key
	* column="id"
	* @hibernate.collection-one-to-many
	*/
	public Set getOrders() {
		return orders;
	}
	public void setOrders(Set orders) {
		this.orders = orders;
	}
	public void addOrders(TheatreOrder theorder) {
		this.orders.add(theorder);
	}
	

}
